/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MinePacket;

import net.md_5.bungee.api.ChatColor;
import net.tygzs.minerpg.Main;
import org.bukkit.command.CommandSender;

/**
 *
 * @author thtTNT
 */
public class Command_Remove 
{
    public static void RemovePacket(CommandSender sender,String PacketName){
        if (!Main.getPluginConfig().getPackets().containsKey(PacketName)){
            sender.sendMessage(ChatColor.RED+"礼包不存在");
            return;
        }
        Main.getPluginConfig().getPackets().remove(PacketName);
        sender.sendMessage(ChatColor.GREEN+"移除成功!");
    }
}
